import request from '@/utils/request'
export default {
  providerList(params) {
    return request({
      url: '/v1/providerList',
      method: 'get',
      params
    })
  },
  detail(id) {
    return request({
      url: `/v1/provider/${id}`,
      method: 'get'
    })
  },
  create(data) {
    return request({
      url: `/v1/providerAdd`,
      method: 'post',
      data
    })
  },
  update(data) {
    return request({
      url: `/v1/providerUpdate`,
      method: 'post',
      data
    })
  },
  delete(data) {
    return request({
      url: `/v1/providerDel`,
      method: 'post',
      data
    })
  }

}
